.class public Lcom/xingbook/anima/b;
.super Landroid/view/animation/Animation;


# instance fields
.field private a:I

.field private b:I

.field private c:F

.field private d:F

.field private e:F

.field private f:F

.field private g:[Lcom/xingbook/anima/d;

.field private h:I


# direct methods
.method public constructor <init>([Lcom/xingbook/anima/d;)V
    .locals 3

    const/4 v0, 0x0

    const/4 v2, 0x0

    invoke-direct {p0}, Landroid/view/animation/Animation;-><init>()V

    iput v2, p0, Lcom/xingbook/anima/b;->a:I

    iput v2, p0, Lcom/xingbook/anima/b;->b:I

    iput v0, p0, Lcom/xingbook/anima/b;->c:F

    iput v0, p0, Lcom/xingbook/anima/b;->d:F

    iput-object p1, p0, Lcom/xingbook/anima/b;->g:[Lcom/xingbook/anima/d;

    array-length v0, p1

    iput v0, p0, Lcom/xingbook/anima/b;->h:I

    iget v0, p0, Lcom/xingbook/anima/b;->h:I

    const/4 v1, 0x1

    if-le v0, v1, :cond_0

    aget-object v0, p1, v2

    iget v0, v0, Lcom/xingbook/anima/d;->a:F

    iput v0, p0, Lcom/xingbook/anima/b;->c:F

    aget-object v0, p1, v2

    iget v0, v0, Lcom/xingbook/anima/d;->b:F

    iput v0, p0, Lcom/xingbook/anima/b;->d:F

    :cond_0
    iput v2, p0, Lcom/xingbook/anima/b;->a:I

    iput v2, p0, Lcom/xingbook/anima/b;->b:I

    return-void
.end method


# virtual methods
.method protected applyTransformation(FLandroid/view/animation/Transformation;)V
    .locals 8

    const/high16 v7, 0x3f80

    const/4 v1, 0x0

    iget v0, p0, Lcom/xingbook/anima/b;->e:F

    iget v0, p0, Lcom/xingbook/anima/b;->f:F

    iget v0, p0, Lcom/xingbook/anima/b;->h:I

    new-array v3, v0, [Lcom/xingbook/anima/d;

    move v0, v1

    :goto_0
    iget v2, p0, Lcom/xingbook/anima/b;->h:I

    if-lt v0, v2, :cond_0

    const/4 v0, 0x1

    :goto_1
    iget v2, p0, Lcom/xingbook/anima/b;->h:I

    add-int/lit8 v2, v2, -0x1

    if-le v0, v2, :cond_1

    aget-object v0, v3, v1

    iget v0, v0, Lcom/xingbook/anima/d;->a:F

    aget-object v2, v3, v1

    iget v2, v2, Lcom/xingbook/anima/d;->b:F

    invoke-virtual {p2}, Landroid/view/animation/Transformation;->getMatrix()Landroid/graphics/Matrix;

    move-result-object v3

    iget-object v4, p0, Lcom/xingbook/anima/b;->g:[Lcom/xingbook/anima/d;

    aget-object v4, v4, v1

    iget v4, v4, Lcom/xingbook/anima/d;->a:F

    sub-float/2addr v0, v4

    iget-object v4, p0, Lcom/xingbook/anima/b;->g:[Lcom/xingbook/anima/d;

    aget-object v1, v4, v1

    iget v1, v1, Lcom/xingbook/anima/d;->b:F

    sub-float v1, v2, v1

    invoke-virtual {v3, v0, v1}, Landroid/graphics/Matrix;->setTranslate(FF)V

    return-void

    :cond_0
    new-instance v2, Lcom/xingbook/anima/d;

    iget-object v4, p0, Lcom/xingbook/anima/b;->g:[Lcom/xingbook/anima/d;

    aget-object v4, v4, v0

    iget v4, v4, Lcom/xingbook/anima/d;->a:F

    iget-object v5, p0, Lcom/xingbook/anima/b;->g:[Lcom/xingbook/anima/d;

    aget-object v5, v5, v0

    iget v5, v5, Lcom/xingbook/anima/d;->b:F

    invoke-direct {v2, v4, v5}, Lcom/xingbook/anima/d;-><init>(FF)V

    aput-object v2, v3, v0

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    move v2, v1

    :goto_2
    iget v4, p0, Lcom/xingbook/anima/b;->h:I

    add-int/lit8 v4, v4, -0x1

    sub-int/2addr v4, v0

    if-le v2, v4, :cond_2

    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_2
    aget-object v4, v3, v2

    sub-float v5, v7, p1

    aget-object v6, v3, v2

    iget v6, v6, Lcom/xingbook/anima/d;->a:F

    mul-float/2addr v5, v6

    add-int/lit8 v6, v2, 0x1

    aget-object v6, v3, v6

    iget v6, v6, Lcom/xingbook/anima/d;->a:F

    mul-float/2addr v6, p1

    add-float/2addr v5, v6

    iput v5, v4, Lcom/xingbook/anima/d;->a:F

    aget-object v4, v3, v2

    sub-float v5, v7, p1

    aget-object v6, v3, v2

    iget v6, v6, Lcom/xingbook/anima/d;->b:F

    mul-float/2addr v5, v6

    add-int/lit8 v6, v2, 0x1

    aget-object v6, v3, v6

    iget v6, v6, Lcom/xingbook/anima/d;->b:F

    mul-float/2addr v6, p1

    add-float/2addr v5, v6

    iput v5, v4, Lcom/xingbook/anima/d;->b:F

    add-int/lit8 v2, v2, 0x1

    goto :goto_2
.end method

.method public initialize(IIII)V
    .locals 2

    invoke-super {p0, p1, p2, p3, p4}, Landroid/view/animation/Animation;->initialize(IIII)V

    iget v0, p0, Lcom/xingbook/anima/b;->a:I

    iget v1, p0, Lcom/xingbook/anima/b;->c:F

    invoke-virtual {p0, v0, v1, p1, p3}, Lcom/xingbook/anima/b;->resolveSize(IFII)F

    move-result v0

    iput v0, p0, Lcom/xingbook/anima/b;->e:F

    iget v0, p0, Lcom/xingbook/anima/b;->b:I

    iget v1, p0, Lcom/xingbook/anima/b;->d:F

    invoke-virtual {p0, v0, v1, p2, p4}, Lcom/xingbook/anima/b;->resolveSize(IFII)F

    move-result v0

    iput v0, p0, Lcom/xingbook/anima/b;->f:F

    return-void
.end method
